Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 20 Dec 2010 18:48:44 +0000 (13:48 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 21 Dec 2010 19:27:25 +0000 (14:27 -0500)
commita2dddb1da06aacef356cd7f0982b98ed3d5bb639
tree6c3f4bf83d62884472f3bba123c55809118e62fd
parent928fd84ebfeb323d13c6ee502879ca5d3c931978
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()

Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().

https://bugzilla.gnome.org/show_bug.cgi?id=637520
gtk/gtkrc.c
gtk/gtkstyle.c
gtk/gtkstyle.h